package com.lej.core.base

import android.content.res.ColorStateList
import androidx.annotation.ColorInt
import com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButtonDrawable


/**创建一个纯色圆角drawable*/
fun createRoundDrawable(@ColorInt color: Int) = QMUIRoundButtonDrawable().apply {
    setBgData(ColorStateList.valueOf(color))
    setIsRadiusAdjustBounds(true)
}
